<template>
  <!-- ... 保持原有代码不变 ... -->

  <!-- 底部医院信息区域 -->
  <footer class="hospital-footer">
    <div class="footer-container">
      <!-- 医院基本信息 -->
      <div class="footer-section">
        <h3>XX医院</h3>
        <div class="footer-content">
          <div class="footer-item"><el-icon><Location /></el-icon> XX省XX市XX区XX路XX号</div>
          <div class="footer-item"><el-icon><Phone /></el-icon> 400-888-8888</div>
          <div class="footer-item"><el-icon><Message /></el-icon> service@hospital.com</div>
          <div class="footer-item"><el-icon><Clock /></el-icon> 周一至周日 8:00-18:00</div>
        </div>
      </div>

      <!-- 快速链接 -->
      <div class="footer-section">
        <h3>快速链接</h3>
        <div class="footer-content">
          <div class="footer-item" @click="goToPage('appointment')">预约挂号</div>
          <div class="footer-item" @click="goToPage('schedule')">门诊排班</div>
          <div class="footer-item" @click="goToPage('guide')">就医指南</div>
          <div class="footer-item" @click="goToPage('health')">健康科普</div>
          <div class="footer-item" @click="goToPage('news')">医院新闻</div>
        </div>
      </div>

      <!-- 科室导航 -->
      <div class="footer-section">
        <h3>科室导航</h3>
        <div class="footer-content">
          <div class="footer-item" @click="goToDepartment('internal')">内科</div>
          <div class="footer-item" @click="goToDepartment('surgery')">外科</div>
          <div class="footer-item" @click="goToDepartment('pediatrics')">儿科</div>
          <div class="footer-item" @click="goToDepartment('gynecology')">妇产科</div>
          <div class="footer-item" @click="goToDepartment('emergency')">急诊科</div>
        </div>
      </div>

      <!-- 关注我们 -->
      <div class="footer-section">
        <h3>关注我们</h3>
        <div class="footer-content">
          <div class="footer-item">微信公众号</div>
          <div class="footer-item">官方微博</div>
          <div class="footer-item">抖音号</div>
          <div class="footer-item">小红书</div>
        </div>
      </div>
    </div>
  </footer>
</template>

<script>
import {Clock, Location, Message, Phone} from "@element-plus/icons-vue";

export default {
  components: {Clock, Message, Phone, Location},
  methods: {
    goToPage(page) {
      console.log(`跳转到${page}页面`);
    },
    goToDepartment(department) {
      console.log(`跳转到${department}科室`);
    }
  }
}
</script>

<style scoped>
.hospital-footer {
  background-color: #f5f7fa;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid #e6e6e6;
}

.footer-container {
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-section h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
  text-align: center;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
  min-height: 60px;
}

.footer-item {
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  text-align: center;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-item:hover {
  color: #409eff;
  background-color: #f5f7fa;
  border-radius: 4px;
}

.footer-item .el-icon {
  margin-right: 8px;
  color: #409eff;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    width: 100%;
  }
}
</style>
